package com.ph.shopping.facade.permission.service;

import com.ph.shopping.common.core.exception.BizException;
import com.ph.shopping.common.util.result.Result;
import com.ph.shopping.facade.permission.entity.ManageBankCardInfo;
import com.ph.shopping.facade.permission.vo.SessionUserVo;

/**
 * @项目：phshopping-facade-permission
 * @描述： 绑定银行卡接口服务
 * @作者： ShuHao
 * @创建时间：2017-03-15
 * @Copyright @2017 by ShuHao
 */
public interface IManageBankCardService {
    /**
     * 绑定银行卡
     *
     * @param bankCardInfo
     * @param sessionUserVo
     * @return
     */
    Result bindCard(ManageBankCardInfo bankCardInfo, SessionUserVo sessionUserVo) throws BizException;

    /**
     * 解绑银行卡
     *
     * @param bankCardInfo
     * @param sessionUserVo
     * @return
     */
    Result unBindCard(ManageBankCardInfo bankCardInfo, SessionUserVo sessionUserVo) throws BizException;


    /**
     * 通过用户获取绑定银行卡信息
     *
     * @param bankCardInfo
     * @return
     */
    Result getBindCardInfo(ManageBankCardInfo bankCardInfo);
}
